home *** CD-ROM | disk | FTP | other *** search
- package asp.wizard;
-
- import asp.netobjects.nfx.util.ExceptionHandler;
- import asp.netobjects.nfx.wizard.Wizard;
- import asp.netobjects.nfx.wizard.WizardPageView;
- import asp.util.ResourceUtil;
- import com.sun.java.swing.ImageIcon;
- import java.net.URL;
-
- public class WizardModelFinish extends WizardModelAbstract {
- // $FF: synthetic field
- static Class class$asp$wizard$WVPanelFinish;
-
- public WizardModelFinish() {
- this.initImgLeft();
- super.dmCanFinish = true;
- super.dmIsLastPage = true;
- }
-
- public WizardModelFinish(Wizard wizard, String bullet, String info, ImageIcon icon, ExceptionHandler handler) {
- super(wizard, bullet, info, icon, handler);
- this.initImgLeft();
- super.dmCanFinish = true;
- super.dmIsLastPage = true;
- }
-
- public boolean isValid() {
- return true;
- }
-
- protected WizardPageView getViewSingleInstance() {
- return WizardViewFinish.getInstance();
- }
-
- private void initImgLeft() {
- String imgFile = ResourceUtil.getResourceString("asp.wizard.res", class$asp$wizard$WVPanelFinish != null ? class$asp$wizard$WVPanelFinish : (class$asp$wizard$WVPanelFinish = class$("asp.wizard.WVPanelFinish")), "image.pageimage");
- if (imgFile != null && !imgFile.equals("")) {
- URL url = this.getClass().getResource("image/" + imgFile);
- if (url != null) {
- super.dmIcon = new ImageIcon(url);
- }
- } else {
- super.dmIcon = null;
- }
-
- }
-
- // $FF: synthetic method
- static Class class$(String class$) {
- try {
- return Class.forName(class$);
- } catch (ClassNotFoundException forName) {
- throw new NoClassDefFoundError(((Throwable)forName).getMessage());
- }
- }
- }
-